#
from typing import Tuple, Any
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm

class SnrRangeUtils(object):
    def __init__(self):
        self.name = 'apps.cpm.tes.snr_range_utils.SnrRangeUtils'
        
    @staticmethod
    def create_radar_plot(ax, ranges, snr_data, title, labels):
        """创建雷达性能曲线图"""
        ax.plot(ranges, snr_data[0], 'k',      label=labels[0])
        ax.plot(ranges, snr_data[1], 'k-.',    label=labels[1])
        ax.plot(ranges, snr_data[2], 'k:',     label=labels[2])
        
        ax.grid(True, which='both', linestyle='--', alpha=0.7)
        ax.set_xlabel('Detection Range (km)', fontsize=12)
        ax.set_ylabel('SNR (dB)', fontsize=12)
        ax.set_title(title, fontsize=14)
        ax.legend(frameon=True, loc='lower right')